<!-- 参考官方文档 -->
<template>
    <view class="">
        <button @click="showLoading">弹出</button>
        <button @click="hideLoading">隐藏</button>
    </view>
</template>

<script lang="ts" setup>
    function showLoading() {
        //弹出弹窗
        uni.showLoading({
            //标题
            title: "加载中...",
            //是否显示透明蒙层，防止触摸穿透
            mask: false
        });
    };
    function hideLoading() {
        //隐藏弹窗
        uni.hideLoading();
    };
</script>

<style lang="scss" scoped>

</style>